package acm.集美大学;

import java.util.Scanner;

public class A {
    static double pi=3.141592;
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String line = sc.nextLine();
        String[] split = line.split("\\W");
        for (String s : split) {
            if (s.length()==0) continue;
            System.out.print(s.length()%10);
        }
    }
}
